// 导入路由
import { createRouter, createWebHashHistory } from "vue-router";
// 导入页面
import index from "../views/index.vue";
// 注册
const routes = [
  {
    path: "/",
    name: "index",
    component: index,
  },
];
// 路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes, // 所有的路由
});
// 导出
export default router;
